package com.aqgj.UserRole.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "user_role")
public class UserRole implements BaseEntity {

    private String id;//ä¸»é”®id

    private String userId;//ç”¨æˆ·id

    private String roleId;//è§’è‰²id

    public void setId(String value){
        this.id = value;
    }
    public void setUserId(String value){
        this.userId = value;
    }
    public void setRoleId(String value){
        this.roleId = value;
    }
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="user_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
    public String getUserId(){
        return this.userId;
    }
    @Column(name ="role_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
    public String getRoleId(){
        return this.roleId;
    }


} 
